
<script language="javascript">
function validate()
{
var num=/^[0-9-]+$/;
var name =/^[a-zA-Z. ]+$/;
var tomatch= /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/

if(document.form.title.value=="")
    	
    	{
   		alert("Please Enter the Article Title");
    	document.form.title.focus();
        return false;
		}
		if(!name.test(document.form.lastname.value))
    	
    	{
   		alert("Please Enter the Last Name");
    	document.form.lastname.focus();
        return false;
		}
if(!name.test(document.form.firstname.value))
    	
    	{
   		alert("Please Enter the First Name");
    	document.form.firstname.focus();
        return false;
		}
if(!name.test(document.form.nameofwebsite.value))
    	
    	{
   		alert("Please Enter the name of publisher");
    	document.form.nameofwebsite.focus();
        return false;
		}
if(!tomatch.test(document.form.fullurl.value))
    	
    	{
   		alert("Please Enter the URL");
    	document.form.fullurl.focus();
        return false;
		}

if(!num.test(document.form.year.value))
    	
    	{
   		alert("Please Enter the Publication Year");
    	document.form.year.focus();
        return false;
		}

}

</script>
<div class="mainWarpArea">
    <!-- Begin contentwarp -->
    <div class="contentwarp">
      <div id="register" style="background-color:#FFF;float:left;width:740px;border:1px solid #CCC;">
        <!-- Begin ContentBox -->
  <h2 style="padding-left: 20px;" class="classifiedstitle"><span style="color:#00619C">Referencing A Website:</span></h2>

  <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td valign="middle" align="center">
      <table width="99%" align="center" class="font12">
      
      <tr>
      <td align="center" valign="top">
      
      <form action="index.php?page=assignment_manager&view=search_website&step=generate_website" method="post" name="form" onsubmit="return validate();">

<div id="tableoutborder">
<table border="0">


<!--

<tr><td bgcolor="#Fed93b"><div align="left" class="ScotchBibtabletxtsmall">Second Author(if applicable)</div></td>

  <td bgcolor="#Fed93b"><span class="ScotchBibtabletxtsmall"> Last Name :

      <input name="lastname1" type="text" size="14" />

  </span></td>

  <td bgcolor="#Fed93b"><span class="ScotchBibtabletxtsmall">First Name:

      <input name="firstname1" type="text" size="14" />

  </span></td>

</tr>

-->
<tbody><tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Title of webpage: </span></div></td>
  <td bgcolor="#F0F0F0" height="40" align="left" >&nbsp;<input name="title" type="text" style="width:200px;"></td>
  
</tr>

<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Author:</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">Last Name:
     <input name="lastname" type="text">
  </span>
  <span class="ScotchBibtabletxtsmall">First Name:
     <input name="firstname" type="text">
  </span></td>
</tr>

<tr><td bgcolor="#F0F0F0" height="40"><div align="right">
        <span class="ScotchBibtabletxtbold">Publisher/Organization: </span></div></td>
  <td bgcolor="#F0F0F0" height="40" align="left">&nbsp;<input name="nameofwebsite"  type="text" style="width:200px;" ></td>
  
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">URL: </span></div></td>
  <td bgcolor="#F0F0F0" height="40" align="left">&nbsp;<input name="fullurl" value="http://"  type="text" style="width:200px;"></td>
  
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Year of Publication: </span></div></td>
  <td bgcolor="#F0F0F0" height="40" align="left">&nbsp;<input name="year" style="width:200px;" type="text"><span class="ScotchBibtabletxtsmall"> eg:2001</span></td>
 
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Date Accessed:</span></div></td>
  <td bgcolor="#F0F0F0" height="40" align="left">&nbsp;<?php 
$date= date("dS F, Y"); ?><input name="lastvisited" value="<?php echo $date; ?> "   type="text" style="width:200px;" > <span class="ScotchBibtabletxtsmall"><?php echo eg.':'.$date; ?> </span></td>
  </tr>
<tr><td colspan="4" align="center" bgcolor="#F0F0F0" valign="middle" height="40">
  <span class="ScotchBibtabletxtsmall">
  &nbsp;<input img="" value="Generate" alt="genBib" type="submit" border="0">
  </span>
</td></tr></tbody></table>
</div>
</form>
     
      </td>
      </tr>
        </table>
    
      </td>
    </tr>
    <tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
  </tbody></table>


      </div>      
      
     
      <!-- End contentwarp -->
       <?php include("includes/right_content.php");?>
      <div style="clear:both;"></div>
      
    </div>
    <!-- End mainWarpArea -->
  </div>